package advice;
import org.springframework.aop.MethodBeforeAdvice;
import java.lang.reflect.Method;
import java.util.Arrays;

public class BeforeService implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("==========================前置增强start=====================");
        System.out.println(target + "的" + method.getName() + "方法启动，参数是：" + Arrays.toString(args));
        System.out.println("==========================前置增强end=====================");
    }
}
